<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Good extends Model
{
	use HasDateTimeFormatter;
	use SoftDeletes;

    protected $table='goods';
    protected $guarded=[];
    //关联商品分类
    public function goodsType(){
        return $this->hasOne(GoodsType::class,'id','goods_type');
    }

}
